package com.github.chain.admin.server.dao;

import com.github.chain.admin.common.domain.User;
import com.github.chain.admin.common.domain.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserRoleDao {
    List<UserRole> findUserRoleByUserId(Long userId);

    Integer deleteUserRoleByUserId(@Param("userId") Long userId);

    Integer insertSelective(UserRole userRole);

    List<UserRole> findUserIdsByRoleId(Long id);

}
